﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="SaleAchievementDetailSrhForm.aspx.cs" ValidateRequest="false" Inherits="SaleAchievementDetailSrhForm"
    Title="销售流水帐" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:Panel ID="PanelNavigate" runat="server" />
        <table width="90%">
            <tr>
                <td style="height: 87px">
                    <table border="0" class="table_border_line">
                        <tr>
                            <td align="left"  colspan="4">
                            <script language="javascript">
                                        (new TitleBar('SearchBar', '销售流水帐')).showBar();
                            </script>
                            </td>
                        </tr>                        
                    </table>
                    <table border="0" class="table_border_line" style="background:ffffff">
                        <tr>
                            <td style="width: 78px; height: 18px;">&nbsp;</td>
                            <td class="list_data_bg_left" style="width: 120px; white-space: nowrap; height: 18px;">销售人员编号</td>
                            <td align="left" style="height: 18px">
                                <table width="330">
                                    <tr>
                                        <td colspan="2">
                                            <asp:Label id="lblEmployeeId" runat = "server" CssClass = "default" Width = "120px"  />
                                            <asp:Button ID="btnEmployeeId" runat="server" Text="职员检索" Width="66px" Visible="False" /></td>
                                    </tr>
                                </table>
                            </td>
                            <td align="right" style="height: 18px">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 78px; height: 18px;">&nbsp;</td>
                            <td class="list_data_bg_left" style="width: 120px; white-space: nowrap; height: 18px;">
                                销售日期</td>
                            <td align="left" style="height: 18px">
                                <table width="330">
                                    <tr>
                                        <td colspan="2" style="width: 327px">
                                            <asp:Label id="lblBeginDate" runat = "server" CssClass = "default" Width = "60px" />                                        
                                            ~
                                            <asp:Label id="lblEndDate" runat = "server" CssClass = "default" Width = "120px" />                                                                                    
                                        </td> 
                                    </tr>
                                </table>
                            </td>
                            <td align="right" style="height: 18px">&nbsp;</td>
                        </tr>                                                                                                                   
                    </table>
                </td>
            </tr>
        </table>
    <br />
        <table id="tblResult" width="100%" runat="server" visible=false>
            <tr>
                <td align="left" >
                <script language="javascript">
                                        (new TitleBar('SearchBar1', '销售流水帐')).showBar();
                            </script>
                </td>
            </tr>           
            <tr>
                <td>
                    <center>
                        <asp:GridView ID="viewSrhRst" runat="server" AllowPaging="True" 
                            AutoGenerateColumns="False" CssClass="GridView_table"
                            DataKeyNames="SaleProcId" OnRowCommand="viewSrhRst_RowCommand" OnPageIndexChanging="viewSrhRst_PageIndexChanging" OnRowDataBound="viewSrhRst_RowDataBound" >
                            <Columns>
                                <asp:BoundField HeaderText="销售过程编号" DataField="SaleProcId" Visible ="false" >
                                    <HeaderStyle Width="0px" CssClass="GridView_head_grayblue" />
                                    <ItemStyle CssClass="GridView_item_center" />
                                </asp:BoundField>          
                                <asp:BoundField HeaderText="客户姓名" DataField="RelationName" >
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="9%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>                                                                                         
                                <asp:BoundField HeaderText="回访次数" DataField="VisitingCount">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="9%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>  
                                <asp:BoundField HeaderText="回访开始日期" DataField="UpdDate"  DataFormatString = "{0:yyyy/MM/dd}" HtmlEncode = false>
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>     
                                <asp:BoundField HeaderText="回访结束日期" DataField="DelDate"  DataFormatString = "{0:yyyy/MM/dd}" HtmlEncode = false>
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>                                                                                                                                                                                               
                                <asp:BoundField HeaderText="申请日期" DataField="NewDate"  DataFormatString = "{0:yyyy/MM/dd}" HtmlEncode = false>
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>     
                                <asp:BoundField HeaderText="入会日期" DataField="RegisterDate" DataFormatString = "{0:yyyy/MM/dd}" HtmlEncode = false>
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>     
                                <asp:BoundField HeaderText="体检日期" DataField="PhysicalDate" DataFormatString = "{0:yyyy/MM/dd}" HtmlEncode = false>
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>     
                                <asp:BoundField HeaderText="审核日期" DataField="AuditingDate" DataFormatString = "{0:yyyy/MM/dd}" HtmlEncode = false>
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>     
                                <asp:BoundField HeaderText="合同日期" DataField="ContractDate" DataFormatString = "{0:yyyy/MM/dd}" HtmlEncode = false>
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>     
                                <asp:BoundField HeaderText="缴费日期" DataField="PaymentDate" DataFormatString = "{0:yyyy/MM/dd}" HtmlEncode = false>
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>     
                                <asp:BoundField HeaderText="礼品日期" DataField="GiftDate" DataFormatString = "{0:yyyy/MM/dd}" HtmlEncode = false Visible ="false" >
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>     
                                <asp:BoundField HeaderText="会员卡号" DataField="MemberNo">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>                                     
                                <asp:BoundField HeaderText="合同金额" DataField="ContractAmount" DataFormatString = "{0:N}" HtmlEncode = false>
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>     
                                <asp:BoundField HeaderText="缴费金额" DataField="PaymentAmount" DataFormatString = "{0:N}" HtmlEncode = false>
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                                </asp:BoundField>       
                            </Columns>
                            <PagerStyle CssClass="list_data_bg" HorizontalAlign="Right" />                            
                        </asp:GridView>
                    </center>          
                    
                 </td>
            </tr>       
        </table>
        <center>
            <tr>
                <td align="center">
                    &nbsp;
                    <asp:Button ID="btnBack" runat="server" Text="返回" Width="65" OnClick="btnBack_Click" />
                </td>
            </tr>                 
        </center>
</asp:Content>
